package com.example.dzbsh.service;

import com.example.dzbsh.dao.CaozuojiluMapper;
import com.example.dzbsh.model.Caozuojilu;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service
public class CaozuojiluService {

    @Resource
    CaozuojiluMapper ddMapper;

    public Map<String,Object> selectNumByLeixing(String ppLeixing){
        return ddMapper.selectNumByLeixing(ppLeixing);
    }

    public boolean add(Caozuojilu ppCaozuojilu){
        return ddMapper.insert(ppCaozuojilu)==1;
    }
}
